<?

JCAT_Package::ImportClass('JCAT_UIGtkWidgetCreator',JCAT::PACKAGE_UIGTK) ;

/**
 * Gtk窗体 创建器
 * 此文件根据 Glade窗口模版文件 自动产生，当 原Glade文件更改后，此文件也会及时重建。
 *
 * !注意：此文件由 JCAT 框架自动产生、维护，任何情况下都不应该手工编辑此文件，以免 JCAT 框架维护此文件时丢弃手工更改的内容。
 *
 * @author	JCAT_UIGtkGlade
 * @create	2008.03.28 10:14:11
 * @access	public
 */
class JCAT_GtkGlade_56cd1754957929bc0b7b050f2f340b34 extends JCAT_UIGtkWidgetCreator
{
	// 公共方法 ///////////////////////////////////////////////////////////
	/**
	 * what's this
	 * 
	 * @access	public
	 * @return	array
	 */
	public function JCAT_GtkGlade_56cd1754957929bc0b7b050f2f340b34()
	{
		$this->arrWidgetTree = unserialize('a:1:{s:17:"GtkWindow:window1";a:1:{s:22:"GtkVBox:UICtrlHtmlText";a:3:{s:31:"Custom:@View:UICtrlBaseInfoView";a:0:{}s:34:"GtkCheckButton:ChkTextLengthByChar";a:0:{}s:36:"Custom:@View:DataVerifierSettingView";a:0:{}}}}') ;
		$this->arrWidgetIds = unserialize('a:5:{s:7:"window1";s:9:"GtkWindow";s:14:"UICtrlHtmlText";s:7:"GtkVBox";s:24:"@View:UICtrlBaseInfoView";s:6:"Custom";s:19:"ChkTextLengthByChar";s:14:"GtkCheckButton";s:29:"@View:DataVerifierSettingView";s:6:"Custom";}') ;
		$this->sTemplatePath = '/home/alee/Project/JeCat/PHPToolbox/Resource/Template/UICtrl/Html/template.UICtrlHtmlText.glade' ;
	}


	// 私有方法 ///////////////////////////////////////////////

	/**
	 * 创建窗体 GtkWindow:window1
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkWindow
	 */
	protected function Create_window1(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$window1 = new GtkWindow() ;


		$UICtrlHtmlText = $this->GetWidget('UICtrlHtmlText',&$arrObjectForSignal) ;
		$window1->add($UICtrlHtmlText) ;

		$window1->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;


		// 窗体名称
		if( isset($window1) and $window1->get_name()=='GtkWindow' )
		{
			$window1->set_name('window1') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($window1) and !$window1->get_data('creator') )
		{
			$window1->set_data('creator',$this) ;
		}
					
		return $window1 ;
	}



	/**
	 * 创建窗体 GtkVBox:UICtrlHtmlText
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkVBox
	 */
	protected function Create_UICtrlHtmlText(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$UICtrlHtmlText = new GtkVBox() ;
		$UICtrlHtmlText->set_homogeneous(false) ;
		$UICtrlHtmlText->set_spacing(10) ;

		$UICtrlBaseInfoView = $this->GetWidget('@View:UICtrlBaseInfoView',&$arrObjectForSignal) ;
		$UICtrlHtmlText->pack_start( $UICtrlBaseInfoView, false, true, 0 ) ;


		$ChkTextLengthByChar = $this->GetWidget('ChkTextLengthByChar',&$arrObjectForSignal) ;
		$UICtrlHtmlText->pack_start( $ChkTextLengthByChar, false, true, 0 ) ;


		$DataVerifierSettingView = $this->GetWidget('@View:DataVerifierSettingView',&$arrObjectForSignal) ;
		$UICtrlHtmlText->pack_start( $DataVerifierSettingView, true, true, 0 ) ;

		$UICtrlHtmlText->set_visible( true, false ) ;
		$UICtrlHtmlText->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;


		// 窗体名称
		if( isset($UICtrlHtmlText) and $UICtrlHtmlText->get_name()=='GtkVBox' )
		{
			$UICtrlHtmlText->set_name('UICtrlHtmlText') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($UICtrlHtmlText) and !$UICtrlHtmlText->get_data('creator') )
		{
			$UICtrlHtmlText->set_data('creator',$this) ;
		}
					
		return $UICtrlHtmlText ;
	}



	/**
	 * 创建窗体 Custom:@View:UICtrlBaseInfoView
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	Custom
	 */
	protected function Create_UICtrlBaseInfoView(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}




		// 嵌入 子视图
		$aSubView = JCAT_View::GetViewByGlobalName('UICtrlBaseInfoView') ;
		if( $aSubView )
			$UICtrlBaseInfoView = $aSubView->Create() ;
		else
			$UICtrlBaseInfoView = new GtkLabel(JCAT_Language::SentenceEx('!Glade 模版错误：名为“%s”的视图不存在。','JCAT',null,'UICtrlBaseInfoView')) ;
		$UICtrlBaseInfoView->set_visible( true, false ) ;
		$UICtrlBaseInfoView->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;


		// 窗体名称
		if( isset($UICtrlBaseInfoView) and $UICtrlBaseInfoView->get_name()=='Custom' )
		{
			$UICtrlBaseInfoView->set_name('@View:UICtrlBaseInfoView') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($UICtrlBaseInfoView) and !$UICtrlBaseInfoView->get_data('creator') )
		{
			$UICtrlBaseInfoView->set_data('creator',$this) ;
		}
					
		return $UICtrlBaseInfoView ;
	}



	/**
	 * 创建窗体 GtkCheckButton:ChkTextLengthByChar
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	GtkCheckButton
	 */
	protected function Create_ChkTextLengthByChar(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}



		$ChkTextLengthByChar = new GtkCheckButton() ;
		$ChkTextLengthByChar->set_label('以字符计算文本长度') ;
		$ChkTextLengthByChar->set_mode(true) ;
		$ChkTextLengthByChar->set_visible( true, false ) ;
		$ChkTextLengthByChar->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;


		// 窗体名称
		if( isset($ChkTextLengthByChar) and $ChkTextLengthByChar->get_name()=='GtkCheckButton' )
		{
			$ChkTextLengthByChar->set_name('ChkTextLengthByChar') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($ChkTextLengthByChar) and !$ChkTextLengthByChar->get_data('creator') )
		{
			$ChkTextLengthByChar->set_data('creator',$this) ;
		}
					
		return $ChkTextLengthByChar ;
	}



	/**
	 * 创建窗体 Custom:@View:DataVerifierSettingView
	 * 
	 * @access	private
	 * @param	$arrObjectForSignal=array()	array	用于响应 Signal 事件的对象, 数组键名做为 对象的变量名
	 * @return	Custom
	 */
	protected function Create_DataVerifierSettingView(array $arrObjectForSignal=array())
	{
		JCAT_ASSERT::ASSERT_ISTHESE( $arrObjectForSignal, array('array:object,null') ) ;

		// 声明 用于响应 Signal 事件的对象的引用
		foreach( $arrObjectForSignal as $sObName=>$aObject )
		{
			if( $aObject )
				$$sObName = $aObject ;
		}




		// 嵌入 子视图
		$aSubView = JCAT_View::GetViewByGlobalName('DataVerifierSettingView') ;
		if( $aSubView )
			$DataVerifierSettingView = $aSubView->Create() ;
		else
			$DataVerifierSettingView = new GtkLabel(JCAT_Language::SentenceEx('!Glade 模版错误：名为“%s”的视图不存在。','JCAT',null,'DataVerifierSettingView')) ;
		$DataVerifierSettingView->set_visible( true, false ) ;
		$DataVerifierSettingView->set_events( Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK ) ;


		// 窗体名称
		if( isset($DataVerifierSettingView) and $DataVerifierSettingView->get_name()=='Custom' )
		{
			$DataVerifierSettingView->set_name('@View:DataVerifierSettingView') ;
		}
		
		// 在 窗体中 记录 Creator
		if( isset($DataVerifierSettingView) and !$DataVerifierSettingView->get_data('creator') )
		{
			$DataVerifierSettingView->set_data('creator',$this) ;
		}
					
		return $DataVerifierSettingView ;
	}




}

?>